<?php
namespace app\magicboard;
use \think\facade\Db;

class TableInfo
{
    static function getFields($table,$db)
    {
        return Db::query('SELECT * FROM information_schema.COLUMNS WHERE TABLE_NAME =:table and TABLE_SCHEMA=:db',['table'=>$table,'db'=>$db]);
    }
}
